
import request from '@/utils/request'

// --------  内容管理 --------

let BASE_ADDRESS = '/work/doc'


//分页查询
export const getDocListAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: 'get',
        params: data
    })
}

//id查询
export const getDocGetInfoApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/getInfo`,
        method: 'get',
        params: data
    })
}

//esId查询
export const getDocSelectEsIdAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/selectEsId`,
        method: 'get',
        params: data
    })
}

// 四大类的分页查找
export const getDocGetTypeAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/getType`,
        method: 'get',
        params: data
    })
}

//修改
export const getDocEditAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/edit`,
        method: 'put',
        data
    })
}